import axios from 'axios'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css';
import {createPinia} from "pinia"
import piniaPersist from 'pinia-plugin-persistedstate'
// import piniaPersist from 'pinia-plugin-persist'
import STable from '@surely-vue/table';
// import STable from '@surely-vue/table';
import Swiper from 'r-swiper'

const app = createApp(App)
const pinia =createPinia()
axios.defaults.withCredentials = true
pinia.use(piniaPersist)
app.provide('$axios',axios)
app.config.globalProperties.$axios = axios
app.use(Swiper)
app.use(pinia)
app.use(router)
app.use(Antd)
app.use(ElementPlus)
app.use(STable)
app.mount('#app')